package com.WISSC.service;

import com.WISSC.bean.Authorization;
import com.WISSC.bean.AuthorizationImage;
import com.WISSC.bean.Massage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 授权机构和图片关联表 服务类
 * </p>
 *
 * @author 张凯
 * @since 2019-05-08
 */
public interface AuthorizationImageService extends IService<AuthorizationImage> {

    Massage upload(MultipartFile file);
    /**
     *
     * @param grantId
     * @return 机构图片回显--url
     */
    List<AuthorizationImage> getImageUrl(Long grantId);

    Massage updatePicture(String grantId, MultipartFile file);


    void deleteByIdGrand(Long id);

    boolean removeByAuthorizationId(Long id);

    List<AuthorizationImage> getByGrantId(Long id);
}
